Two Controlled Experiments Assessing the Usefulness of Design Pattern Documentation in Program Maintenance

نویسندگان

  • Lutz Prechelt
  • Barbara Unger
  • Michael Philippsen
  • Walter F. Tichy
چکیده

ÐUsing design patterns is claimed to improve programmer productivity and software quality. Such improvements may manifest both at construction time (in faster and better program design) and at maintenance time (in faster and more accurate program comprehension). This paper focuses on the maintenance context and reports on experimental tests of the following question: Does it help the maintainer if the design patterns in the program code are documented explicitly (using source code comments) compared to a well-commented program without explicit reference to design patterns? Subjects performed maintenance tasks on two programs ranging from 360 to 560 LOC including comments. Both programs contained design patterns. The controlled variable was whether the use of design patterns was documented explicitly or not. The experiments thus tested whether pattern comment lines (PCL) help during maintenance if patterns are relevant and sufficient program comments are already present. It turns out that this question is a challenge for the experimental methodology: A setup leading to relevant results is quite difficult to find. We discuss these issues in detail and suggest a general approach to such situations. The experiment was performed with Java by 74 German graduate students and then repeated with C++ by 22 American undergraduate students. A conservative analysis of the results supports the hypothesis that pattern-relevant maintenance tasks were completed faster or with fewer errors if redundant design pattern information was provided. Redundant means that the information carried in pattern comments is also available in different form in other comments. The contribution of this article is twofold: It provides the first controlled experiment results on design pattern usage and it presents a solution approach to an important class of experiment design problems for experiments regarding documentation. Index TermsÐControlled experiment, design pattern, comments, documentation, maintenance.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Two Controlled Experiments Assessing the Usefulness of Design Pattern Information During Program Maintenance

This paper reports on two controlled and repeatable experiments investigating whether software design patterns improve software quality and programmer productivity during software maintenance. Subjects performed maintenance tasks on two programs ranging from 360 to 560 LOC including comments. Both programs contained design patterns. The controlled variable was whether the design patterns were d...

متن کامل

Two Controlled Experiments Assessing the Usefulness of Design Pattern Information in Program Maintenance

A major hypothesis underlying design pattern research is that use of design patterns improves programmer productivity and software quality. This paper reports on a first experimental test of this hypothesis. Subjects performed maintenance tasks on two programs ranging from 360 to 560 LOC including comments. Both programs contained design patterns. The controlled variable was whether the design ...

متن کامل

Documenting Design Patterns in Code Eases Program Maintenance

Software design patterns are a promising idea with many advocates. While subjective reports of their usefulness are available, scienti c proof is still missing. We consider the case of programmers using design pattern documentation (in the form of comments in the source program) during maintenance. Is such pattern documentation (PD) helpful for understanding a program more quickly and designing...

متن کامل

Assessment of the Effect of Continuing Education Program on Nurse’s Knowledge, Attitude and Performance about Documentation

Background: Documentation is one of the nurses’ professional tasks, which is an important component of medical evidence and patient’s record. Finding effective teaching methods for enhancing nurses’ ability in documentation can be helpful. Aim: This study was performed to determine the effect of continuing education program on nurse’s knowledge, attitude and performance about documentation. Met...

متن کامل

The supportive effect of patterns in architecture decision recovery - A controlled experiment

The documentation of software architectural design decisions is important to help people understand the system and the rationale behind architectural solutions. In practice, the documentation of such decisions is regularly done after the fact, or skipped completely. To support software maintenance and evolution, the decisions have to be recovered and described. This is often hindered by the fac...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • IEEE Trans. Software Eng.

دوره 28  شماره 

صفحات  -

تاریخ انتشار 2002